package com.groupbuying.orderproducer.utils;

/**
 * @Author gxy
 * @Description 返回结果类
 * @Date 2019/1/28 16:50
 **/
public class Result {

    private Integer code;//状态码
    private String massege;//消息
    private Object data;//数据对象

    /**
     * @Author gxy
     * @Description 无参构造函数
     * @Date 9:46 2019/1/29
     * @Param []
     * @return
     **/

    public Result(){
        super();
    }


    /**
     * @Author gxy
     * @Description 只返回状态码和提示消息
     * @Date 9:46 2019/1/29
     * @Param [success, code, massege]
     * @return
     **/

    public Result(Integer code, String massege){
        super();
        this.code=code;
        this.massege=massege;
    }

    /**
     * @Author gxy
     * @Description 返回状态码和数据
     * @Date 9:51 2019/1/29
     * @Param [success, code, result]
     * @return
     **/

    public Result( Integer code, Object data){
        super();
        this.code=code;
        this.data=data;
    }

    /**
     * @Author gxy
     * @Description 返回状态码、提示信息和数据
     * @Date 9:47 2019/2/16
     * @Param [code, massege, data]
     * @return
     **/


    public Result(Integer code, String massege, Object data){
        super();
        this.code=code;
        this.massege=massege;
        this.data=data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public String getMassege() {
        return massege;
    }

    public void setMassege(String massege) {
        this.massege = massege;
    }

    public Object getResult() {
        return data;
    }

    public void setResult(Object data) {
        this.data = data;
    }



}
